<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.htm"/>
</head>
<body>
<div id="head"><h1>HotelOrganizer</h1></div>
	<jsp:include page="menu-hotel.htm"/>
	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>
		<table class="listing">
			<colgroup>
				<col class="buttoncell"/>
				<col class="buttoncell"/>
				<col/>
				<col/>
			</colgroup>
			<tbody>
				<tr>
					<th></th>
					<th></th>
					<th>Bezeichnung</th>
					<th>Preis</th>
				</tr>
				<c:forEach items="${kategorien}" var="kategorie">
					<tr>
					<!-- 	<td>
							<input type = "hidden" name="id" />
						</td> -->
						<td>
							<a href="EditKategorie.html?id=<c:out value="${kategorie.id}"/>">
								<img src="images/button_edit.png" alt="Icon - Bearbeite Kategorie"/>
							</a>
						</td>
						<td>
							<a href="LoescheKategorie.html?id=<c:out value="${kategorie.id}"/>">
								<img src="images/button_drop.png" alt="Icon - Lösche Kategorie"/>
							</a>
						</td>
						<td>
								<c:out value="${kategorie.bezeichnung}"/>
						</td>
						<td><c:out value="${kategorie.preis}"/></td>
					</tr>
				</c:forEach>  
			</tbody>
		</table>
		<br />
		<p>
			<a href="EditKategorie.html">weitere Kategorie hinzufügen</a><br/><br/>
		</p>
	</div>

</body>
</html>